package com.itheima.lianxi;


import java.io.*;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("day11_lianxi\\aaa.txt"));
        String str1="无情,哈拉,少老,八蜜,汁小,汉堡,欸嘿嘿.";
        String[] split = str1.split(",");
        for (String s : split) {
            bw.write(s);
            bw.newLine();
            bw.flush();
        }
        bw.close();
        BufferedReader br = new BufferedReader(new FileReader("day11_lianxi\\aaa.txt"));
        String str2=null;

        while((str2=br.readLine())!=null){
            System.out.println(str2);
        }
        br.close();
    }
}
